// const str = "http://zhangpeiyue.com";
// console.log(str.includes("yue"));// true
// console.log(str.includes("http://"));// true
// console.log(str.startsWith("http"))

// {age:12,sex:"男“}======> age=12&sex=男
const params = {
	age:12,
	sex:"男"
};
console.log(Object.keys(params));// ["age","sex"]
console.log(Object.keys(params).map(key=>key+"="+params[key]));// ["age=12","sex=男"]
console.log(Object.keys(params).map(key=>key+"="+params[key]).join("&"));// age=12&sex=男
